#pragma once

#include <ClanLib/core.h>
#include <ClanLib/network.h>

namespace Network
{
	class ServerUser
	{
	public:
		ServerUser();

		static ServerUser *getUser(CL_NetGameConnection *connection);
		void attachToConnection(CL_NetGameConnection *connection);

		void sendEvent(const CL_NetGameEvent &gameEvent);

		unsigned int id;
		CL_String user_name;

	private:
		CL_NetGameConnection *connection;
	};
}
